package com.demo.designMode.daili;

/**
 * 代理
 */
public class WangPo implements KindWomen {
    private KindWomen kindWomen;

    /**
     * 能代理任何 女人
     * @param kindWomen
     */
    public WangPo(KindWomen kindWomen) {
        this.kindWomen = kindWomen;

    }

    /**
     * 默认代理 潘金莲
     */
    public WangPo() {
        this.kindWomen = new PanJinLian();

    }


    @Override
    public void makeEyesWithMan() {

        kindWomen.makeEyesWithMan();

    }

    @Override
    public void happyWithMan() {

        kindWomen.happyWithMan();
    }
}
